From e4090499dbcf5dbbf041e0f4b87ebf6d0c361006 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Mon, 5 Dec 2016 09:41:03 -0500 Subject: [PATCH] Using layout.root here should be sufficient --- src/cargo/util/toml.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cargo/util/toml.rs b/src/cargo/util/toml.rs index 1d4f8608a..fd5a36ca1 100644 --- a/src/cargo/util/toml.rs +++ b/src/cargo/util/toml.rs @@ -546,11 +546,7 @@ impl TomlManifest { } // processing the custom build script - let manifest_file = util::important_paths::find_root_manifest_for_wd(None, &layout.root) - .chain_error(|| human("Could not find root manifest location"))?; - let base_dir = manifest_file.parent() - .ok_or(human("Could not get parent directory of manifest"))?; - let new_build = self.maybe_custom_build(&project.build, &base_dir); + let new_build = self.maybe_custom_build(&project.build, &layout.root); // Get targets let targets = normalize(&lib, -- 2.30.2